#include "physicist.h"

physicist::physicist()
{
}

physicist::physicist(QDomNodeList parameters)
{
    this->id        = parameters.at(0).toElement().text().toInt();
    this->prename   = parameters.at(1).toElement().text();
    this->surname   = parameters.at(2).toElement().text();
    this->team      = parameters.at(3).toElement().text();
}

QString physicist::GetName()
{
    return this->prename+" "+this->surname;
}

int physicist::GetID()
{
    return this->id;
}

bool physicist::operator==(const physicist& rhs) const
{
    return id == rhs.id;
}
